package com.shujia.duotai_work.exer1;

public class Coke extends Drink {
    private String type;

    public Coke(int size, String type) {
        super("可乐", size);
        this.type = type;
    }

    @Override
    public void show() {
        System.out.println("名称:" + name);
        System.out.println("品牌:" + type);
        System.out.println("容量:" + size);
    }
}
